$("#btn1").click(function() {
	let num = $("#i1").val();
	if (num != null || num != "") {
		let arr = num.split(",");
		let sum = 0;
		for (let n of arr) {
			sum += Number(n);
		}
		$(".result").html(sum);
	} else {
		alert("请输入内容");
	}
});
